//
//  HeadViewRightButton.m
//  折叠菜单测试2
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 余晓聪. All rights reserved.
//

#import "HeadViewRightButton.h"

@implementation HeadViewRightButton

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _unfoldOrBackLabel = [[UILabel alloc]init];
        [self addSubview:_unfoldOrBackLabel];
        _myImageView = [[UIImageView alloc]init];
        [self addSubview:_myImageView];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    _unfoldOrBackLabel.frame = CGRectMake(0, 0, self.frame.size.width / 2.0, self.frame.size.height);
    
    _myImageView.frame = CGRectMake( _unfoldOrBackLabel.frame.size.width, 0, _unfoldOrBackLabel.frame.size.width, _unfoldOrBackLabel.frame.size.height);
}

@end
